export abstract class BaseError extends Error {
  constructor(message: string, inner?: any) {
    super(message);
    this.inner = inner;
  }

  abstract readonly code: string;

  public readonly inner: Error;
}
